package org.apache.i18n.translater.map;

import java.util.HashMap;
import java.util.Map;

import org.apache.i18n.translater.Translater;

public class MapTranslater extends Translater{

	
	Map<String, String> map=new HashMap<String, String>();
	public MapTranslater()
	{
		map.put("Hello World!", "世界您好！");
	}
	
	@Override
	public String translateSentence(String from) {
		String to = map.get(from);
		if(to==null)
		{
			from=to;
		}
		return to;
	}

}
